﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework5
{
    //internal class School
    //{
    //    public int Id { get; set; }
    //    public string Name { get; set; }
    //}

    //internal class Class
    //{
    //    public int Id { get; set; }
    //    public int SchoolId { get; set; }
    //    public string ClassName { get; set; }
    //}

    //internal class Student
    //{
    //    public string Name {  get; private set; }
    //    public string Classid { get; set; }
    //    public string Age { get; set; }

    //}
    public class School
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public ICollection<Class> Classes { get; set; }
    }

    public class Class
    {
        public int Id { get; set; }
        public int SchoolId { get; set; }
        public string Name { get; set; }

        public School School { get; set; }
        public ICollection<Student> Students { get; set; }
    }

    public class Student
    {
        public int Id { get; set; }
        public int ClassId { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }

        public Class Class { get; set; }
    }

    public class Log
    {
        public int Id { get; set; }
        public string Operation { get; set; }
        public DateTime Timestamp { get; set; } = DateTime.Now;
    }

}
